import req1 from '@/lib/req1'
//获取日报列表
export function applListAPI(){
    return req1.get('/apply/applyList')
}
//新增日报
export function addAppInsertAPI({applyDate ,content  }){
return req1.post('/apply/applyAdd',{applyDate ,content})
}
//审批
export function appUpdateAPI({id,auditDate ,result  ,opinion ,type }){
    console.log(id,auditDate ,result  ,opinion ,type);
  return req1.put('/apply/applyUpdate',{id,auditDate ,result  ,opinion ,type })
}
//删除
export function appDeleteAPI(id){
    id = id.join()
    return req1.delete('/apply/applyDelete',{id})
}
//搜索
export function appSeach({applyDate}){
    return req1.get('/apply/applyLike',{applyDate})
}
